package com.example.auth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.auth.entity.SysMenu;
import com.example.auth.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.auth.entity.dto.AssignMenuDTO;
import com.example.auth.entity.dto.SysRoleCreateDTO;
import com.example.auth.entity.dto.SysRoleEditDTO;
import com.example.auth.entity.dto.SysRoleQueryDTO;
import com.example.auth.entity.vo.SysRoleQueryVO;

import java.util.List;

/**
* @author SIE
* @description 针对表【sys_role(角色)】的数据库操作Service
* @createDate 2023-07-07 13:05:31
*/
public interface SysRoleService extends IService<SysRole> {

    Page<SysRoleQueryVO> selectRolePage(Long pageNum, Long pageSize, SysRoleQueryDTO sysRoleQueryDTO);

    void insertRole(SysRoleCreateDTO sysRoleCreateDTO);

    SysRoleQueryVO getRoleById(Long id);

    void updateRole(SysRoleEditDTO sysRoleEditDTO);

    void removeRoleById(Long id);

    void removeBatch(List<Long> idList);

    void updateRoleStatus(Long roleId, Long status);

    List<SysMenu> findSysMenuByRoleId(Long roleId);

    void doAssign(AssignMenuDTO assignMenuDTO);
}
